package com.wanyang.dao;

import com.wanyang.dao.base.DefaultCommonDaoImpl;
import com.wanyang.pojo.User;
import org.nutz.dao.Cnd;
import org.springframework.stereotype.Repository;

/**
 * Created by zhai on 16/4/18.
 */
@Repository
public class UserDao extends DefaultCommonDaoImpl<User> {

    public User login(String username, String password) {
        return this.queryForOne(Cnd.where("username", "=", username).and("password", "=", password));
    }
}
